#define _CRT_SECURE_NO_WARNINGS	

#include<stdio.h>
#define Pi 3.14
int main()
{
    double r, h;
    scanf("%lf%lf", &r, &h);
    printf("%.2f %.2f\n%.2f %.2f\n", 2 * Pi * r, Pi * r * r, 2 * Pi * r * h, Pi * r * r * h);
    return 0;
}